<!--必须加载当前模板-->
{template 'common/header'}
<div>
    <a href="{php echo $this->createWebUrl('activity_operation');}" class="btn btn-success">创建活动</a>
</div>
<hr>
    <table style="text-align: center" class="table table-bordered table-hover">
        <thead>
        <tr>
            <td>id</td>
            <td>活动名称</td>
            <td>活动封面图</td>
            <td>活动时间</td>
            <td>报名时间</td>
            <td>数据</td>
            <td>状态</td>
            <td>操作</td>
        </tr>
        </thead>
        <tbody>
        {loop $activity_list $key $value}
        <tr class="bodyTr">
            <td class="id">{$value['id']}</td>
            <td>{$value['title']}</td>
            <td><img style="max-height: 100px" src="{php echo $_W['attachurl'].$value['img']}" alt=""></td>
            <td>
                开始：<span class="label label-primary">{$value['start']}</span><br>
                结束：<span class="label label-danger">{$value['end']}</span>
            </td>
            <td>
                开始：<span class="label label-primary">{$value['apply_start']}</span><br>
                结束：<span class="label label-danger">{$value['apply_end']}</span>
            </td>
            <td>
                <p>报名人数：<span class="label label-info">1231</span></p>
                <p>投票数量：<span class="label label-info">2323233</span></p>
            </td>
            {if $value['state']=='0'}
            <td><span class="label label-info">正常</span></td>
            {else}
            <td><span class="label label-default">禁用</span></td>
            {/if}
            <td>
                <a class="btn btn-sm btn-primary btn-block">修改</a>
                <a class="btn btn-sm btn-danger btn-block deleteActivity">删除</a>
            </td>
        </tr>
        {/loop}
        </tbody>
    </table>

<!--必须加载当前模板-->
{template 'common/footer'}

<style>

</style>

<script>

</script>